package org.example.mapper;

import org.apache.ibatis.annotations.Select;
import org.example.entity.Category;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.example.entity.Note;

import java.util.List;
import java.util.Map;

/**
* @author 谢娅
* @description 针对表【category】的数据库操作Mapper
* @createDate 2023-12-21 23:25:23
* @Entity org.example.entity.Category
*/
public interface CategoryMapper extends BaseMapper<Category> {

    List<Category> getDimQuery(Map<String, Object> dataMap);


    @Select("select * from category where name = #{name} and deleted = 0")
    Category getByName(String name);
}




